module.exports={
  router: {
    linkActiveClass: 'active',
    extendRoutes(routes, resolve) {
      console.log(routes)
      routes.splice(0)
      routes.push(...[
        {
          path:'/',
          component:resolve(__dirname,'pages/layouts/'),
          children:[
            {
              path:'',
              name:'home',
              component:resolve(__dirname,'pages/home')
            },
            {
              path:'/login',
              name:'login',
              component:resolve(__dirname,'pages/login')
            },
            {
              path:'/register',
              name:'register',
              component:resolve(__dirname,'pages/login')
            },
            {
              path:'/profile/:username',
              name:'profile',
              component:resolve(__dirname,'pages/profile')
            },
            {
              path:'/settings',
              name:'settings',
              component:resolve(__dirname,'pages/settings')
            },
            {
              path:'/edit',
              name:'edit',
              component:resolve(__dirname,'pages/edit')
            },
            {
              path:'/article/:slug',
              name:'article',
              component:resolve(__dirname,'pages/article')
            },
          ]
        }
      ])
    }
  }
}
